package com.bjpowernode.boss.mvc.interceptor;

import com.bjpowernode.boss.common.client.RedisClient;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor;

/**
 * @author yu
 * @date 2024/7/12  22:30
 */
@Component
public class TokenInterceptor implements HandlerInterceptor {
    @Resource
    private RedisClient redisClient ;

    // 验证token


    /*@Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        // 1.放行"OPTIONS"请求
        if ("OPTIONS".equals(request.getMethod())) {
            return true ;
        }

        // 2.获取header中的operatorId Authorization
        String operatorId = request.getHeader("operatorId") ;
        String
    }*/
}
